lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [5665] Remove code that became dead 20130112T1404Z


From: Greg Chicares
Subject: [lmi-commits] [5665] Remove code that became dead 20130112T1404Z
Date: Sat, 12 Jan 2013 14:06:15 +0000

Revision: 5665
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5665
Author:   chicares
Date:     2013-01-12 14:06:15 +0000 (Sat, 12 Jan 2013)
Log Message:
-----------
Remove code that became dead 20130112T1404Z

Modified Paths:
--------------
    lmi/trunk/ihs_server7702.cpp
    lmi/trunk/ihs_server7702.hpp

Modified: lmi/trunk/ihs_server7702.cpp
===================================================================
--- lmi/trunk/ihs_server7702.cpp        2013-01-12 14:04:20 UTC (rev 5664)
+++ lmi/trunk/ihs_server7702.cpp        2013-01-12 14:06:15 UTC (rev 5665)
@@ -47,7 +47,6 @@
 #include <cstdlib>
 #include <exception>
 #include <iostream>
-#include <sstream>
 #include <string>
 
 //============================================================================
@@ -175,35 +174,6 @@
 }
 
 //============================================================================
-// Read from C string, and put result in a C string.
-// The caller must allocate sufficient space for the result; at present,
-// that means 444 bytes.
-void RunServer7702FromString(char* i, char* o)
-{
-    EnterServer();
-    Server7702Input input;
-    try
-        {
-        std::istringstream is(i);
-        is >> input;
-        Server7702 contract(input);
-        contract.Process();
-        std::ostringstream os;
-        os << contract.GetOutput();
-        std::strcpy(o, os.str().c_str());
-        }
-    // Catch exceptions that are thrown during input
-    catch(std::exception const& e)
-        {
-        std::cerr << input.UniqueIdentifier << " error: " << e.what() << '\n';
-        }
-    catch(...)
-        {
-        std::cerr << "Untrapped exception" << '\n';
-        }
-}
-
-//============================================================================
 Server7702::Server7702(Server7702Input& a_Input)
     :Input(a_Input)
     ,IsIssuedToday(false)

Modified: lmi/trunk/ihs_server7702.hpp
===================================================================
--- lmi/trunk/ihs_server7702.hpp        2013-01-12 14:04:20 UTC (rev 5664)
+++ lmi/trunk/ihs_server7702.hpp        2013-01-12 14:06:15 UTC (rev 5665)
@@ -38,7 +38,6 @@
 {
     void LMI_SO InitializeServer7702();
     Server7702Output LMI_SO RunServer7702FromStruct(Server7702Input a_Input);
-    void LMI_SO RunServer7702FromString(char* i, char* o);
 }
 
 class Server7702




reply via email to

[Prev in Thread] Current Thread [Next in Thread]