From 9716687f450612b66071df83f37bd297fad3af33 Mon Sep 17 00:00:00 2001 From: <> Date: Fri, 5 May 2017 19:33:43 -0700 Subject: [PATCH] Removed unused lines of code and functions --- ReflexToQ3/main.cpp | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/ReflexToQ3/main.cpp b/ReflexToQ3/main.cpp index fec8eef..eab8f06 100644 --- a/ReflexToQ3/main.cpp +++ b/ReflexToQ3/main.cpp @@ -14,28 +14,6 @@ #include "brushdef.hpp" using namespace std; -// .map files for GTKRadiant -bool writemap(const TWorldSpawn &x, - const char *fn, - void (*f) (std::stringstream &, const vector &)) { - ofstream OutFile; - OutFile.open(fn); - if(!OutFile.is_open()) - { - return false; - } - - OutFile << "{" << std::endl - << "\"classname\" \"worldspawn\"" << std::endl; - - for(const TBrush& krBrush : x.m_Brushes) - { - OutFile << GetBrushString(krBrush, f); - } - - OutFile << "}" << std::endl; - return true; -} int main(const int _kiArgC, const char** _kppcArgv) { @@ -46,21 +24,5 @@ int main(const int _kiArgC, const char** _kppcArgv) } convertmap(_kppcArgv[1], _kppcArgv[2], &brushdef_net); -/* CMapParser Parser; - - const bool kbSuccess = Parser.LoadMap(_kppcArgv[1]); - if(!kbSuccess) - { - return(1); - } - else - { - if (writemap(Parser.m_WorldSpawn, _kppcArgv[2], &brushdef_net)) { - cout << "Successfully exported map." << endl; - } else { - cout << "Failed to write output file." << endl; - } - } */ - return(0); } \ No newline at end of file