rm old bb shit that we dont use
authorDana Jansens <danakj@orodu.net>
Thu, 16 Jan 2003 07:02:47 +0000 (07:02 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 16 Jan 2003 07:02:47 +0000 (07:02 +0000)
otk/util.cc
otk/util.hh

index a3ec003..1670324 100644 (file)
@@ -61,30 +61,6 @@ void bexec(const string& command, const string& displaystring) {
 }
 
 
-string textPropertyToString(Display *display, XTextProperty& text_prop) {
-  string ret;
-
-  if (text_prop.value && text_prop.nitems > 0) {
-    if (text_prop.encoding == XA_STRING) {
-      ret = (char *) text_prop.value;
-    } else {
-      text_prop.nitems = strlen((char *) text_prop.value);
-
-      char **list;
-      int num;
-      if (XmbTextPropertyToTextList(display, &text_prop,
-                                    &list, &num) == Success &&
-          num > 0 && *list) {
-        ret = *list;
-        XFreeStringList(list);
-      }
-    }
-  }
-
-  return ret;
-}
-
-
 string itostring(unsigned long i) {
   if (i == 0)
     return string("0");
index 91c247a..e00a4e1 100644 (file)
@@ -23,15 +23,10 @@ extern "C" {
 
 namespace otk {
 
-/* XXX: this needs autoconf help */
-const unsigned int BSENTINEL = 65535;
-
 std::string expandTilde(const std::string& s);
 
 void bexec(const std::string& command, const std::string& displaystring);
 
-std::string textPropertyToString(Display *display, XTextProperty& text_prop);
-
 std::string itostring(unsigned long i);
 std::string itostring(long i);
 inline std::string itostring(unsigned int i)