Remove regcache_xfree
[deliverable/binutils-gdb.git] / gdb / regcache.c
index 2a92cf02419687e36a861b20624d9b973e994995..54aed6cb536eb2375e34697e57fad08c0237badc 100644 (file)
@@ -241,19 +241,10 @@ regcache_get_ptid (const struct regcache *regcache)
   return regcache->ptid ();
 }
 
-void
-regcache_xfree (struct regcache *regcache)
-{
-  if (regcache == NULL)
-    return;
-
-  delete regcache;
-}
-
 static void
 do_regcache_xfree (void *data)
 {
-  regcache_xfree ((struct regcache *) data);
+  delete (struct regcache *) data;
 }
 
 struct cleanup *
This page took 0.023574 seconds and 4 git commands to generate.