Index: src/GenPoly/Box.cc
===================================================================
--- src/GenPoly/Box.cc	(revision fa2e1835ade3aa1f3812f145ebfef6cd082dbb51)
+++ src/GenPoly/Box.cc	(revision f1f481a248c0e686d11a61bd4f4a6f4a950f5d31)
@@ -221,30 +221,4 @@
 	} // anonymous namespace
 
-	/// version of mutateAll with special handling for translation unit so you can check the end of the prelude when debugging
-	template< typename MutatorType >
-	inline void mutateTranslationUnit( std::list< Declaration* > &translationUnit, MutatorType &mutator ) {
-		bool seenIntrinsic = false;
-		SemanticErrorException errors;
-		for ( typename std::list< Declaration* >::iterator i = translationUnit.begin(); i != translationUnit.end(); ++i ) {
-			try {
-				if ( *i ) {
-					if ( (*i)->get_linkage() == LinkageSpec::Intrinsic ) {
-						seenIntrinsic = true;
-					} else if ( seenIntrinsic ) {
-						seenIntrinsic = false; // break on this line when debugging for end of prelude
-					}
-
-					*i = dynamic_cast< Declaration* >( (*i)->acceptMutator( mutator ) );
-					assert( *i );
-				} // if
-			} catch( SemanticErrorException &e ) {
-				errors.append( e );
-			} // try
-		} // for
-		if ( ! errors.isEmpty() ) {
-			throw errors;
-		} // if
-	}
-
 	void box( std::list< Declaration *>& translationUnit ) {
 		PassVisitor<LayoutFunctionBuilder> layoutBuilder;
@@ -306,11 +280,4 @@
 		layoutDecl->fixUniqueId();
 		return layoutDecl;
-	}
-
-	/// Makes a unary operation
-	Expression *makeOp( const std::string &name, Expression *arg ) {
-		UntypedExpr *expr = new UntypedExpr( new NameExpr( name ) );
-		expr->args.push_back( arg );
-		return expr;
 	}
 
