From b5f04a3ebce38e80864ca20579d6f5898b04942c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 9 Jul 2011 23:27:20 -0400 Subject: [PATCH] Code Cleanup - Obsoleted Context::disallowModifications, because they are no longer disallowed. --- src/Context.cpp | 14 -------------- src/Context.h | 1 - 2 files changed, 15 deletions(-) diff --git a/src/Context.cpp b/src/Context.cpp index 3a0e4a827..a694516df 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -393,20 +393,6 @@ void Context::shadow () */ } -//////////////////////////////////////////////////////////////////////////////// -void Context::disallowModification () const -{ -/* - if (task.size () || - subst.mFrom != "" || - tagAdditions.size () || - tagRemovals.size ()) - throw std::string ("The '") -// + cmd.command - + "' command does not allow further modification of a task."; -*/ -} - //////////////////////////////////////////////////////////////////////////////// void Context::assumeLocations () { diff --git a/src/Context.h b/src/Context.h index 112794d7f..9b9175c1b 100644 --- a/src/Context.h +++ b/src/Context.h @@ -67,7 +67,6 @@ public: void clearMessages (); void clear (); - void disallowModification () const; void decomposeSortField (const std::string&, std::string&, bool&); private: