[openrtm-commit:03155] r1106 - trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC

openrtm @ openrtm.org openrtm @ openrtm.org
2018年 1月 29日 (月) 17:20:33 JST


Author: t-katami
Date: 2018-01-29 17:20:32 +0900 (Mon, 29 Jan 2018)
New Revision: 1106

Modified:
   trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/Manager.java
Log:
[compat,bugfix,->RELENG_1_2] Deleted manager.refstring_path function. refs #4443

Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/Manager.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/Manager.java	2018-01-29 07:05:39 UTC (rev 1105)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/Manager.java	2018-01-29 08:20:32 UTC (rev 1106)
@@ -3883,63 +3883,6 @@
             }
         }
 
-        File otherref 
-            = new File(m_config.getProperty("manager.refstring_path"));
-        if (!otherref.exists()) {
-            FileWriter reffile = null;
-            try {
-                reffile = new FileWriter(otherref);
-                reffile.write(
-                        m_pORB.object_to_string(m_mgrservant.getObjRef()));
-                reffile.close();
-            } catch (IOException e) {
-            }
-            if(reffile != null){
-                try {
-                    reffile.close();
-                } 
-                catch (IOException e) {
-                }
-            }
-        }
-        else {
-            FileReader reffile = null;
-            BufferedReader br = null;
-            try{
-                String refstring = new String();
-                reffile = new FileReader(otherref);
-                br = new BufferedReader(reffile); 
-                String line;
-                while ((line = br.readLine()) != null) {
-                    refstring = refstring + line;
-                }
-                br.close();
-                reffile.close();
-
-
-                //Object obj = m_pORB.string_to_object(refstring);
-                //Manager mgr = ManagerHelper.narrow(obj);
-                //        if (mgr==null) return false;
-                //        mgr.set_child(m_mgrservant.getObjRef());
-                //        m_mgrservant.set_owner(mgr);
-            } catch (IOException e) {
-            }
-            if(br != null){
-                try{
-                    br.close();
-                } 
-                catch (IOException e) {
-                }
-            }
-            if(reffile != null){
-                try{
-                    reffile.close();
-                } 
-                catch (IOException e) {
-                }
-            }
-        }
-
         return true;
     }
 



More information about the openrtm-commit mailing list