Bug 1512455 - removed some dead code from the IPDL compiler; r=nika
authorAlex Gaynor <agaynor@mozilla.com>
Thu, 06 Dec 2018 20:27:04 +0000
changeset 508781 77a63b4f08a34a7b283a77fff91a589e5702f9db
parent 508780 cd82cdbef60117010b1c8d9ba7088901ebb42844
child 508782 f456b3dd43c03e83efad3b4d4af480f720e764f5
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnika
bugs1512455
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1512455 - removed some dead code from the IPDL compiler; r=nika Differential Revision: https://phabricator.services.mozilla.com/D13922
ipc/ipdl/ipdl/lower.py
--- a/ipc/ipdl/ipdl/lower.py
+++ b/ipc/ipdl/ipdl/lower.py
@@ -253,40 +253,24 @@ function would return true for |Actor[]|
 
 
 def _abortIfFalse(cond, msg):
     return StmtExpr(ExprCall(
         ExprVar('MOZ_RELEASE_ASSERT'),
         [cond, ExprLiteral.String(msg)]))
 
 
-def _refptr(T, ptr=0, ref=0):
-    return Type('RefPtr', T=T, ptr=ptr, ref=ref)
-
-
-def _refptrGet(expr):
-    return ExprCall(ExprSelect(expr, '.', 'get'))
-
-
-def _refptrForget(expr):
-    return ExprCall(ExprSelect(expr, '.', 'forget'))
-
-
-def _refptrTake(expr):
-    return ExprCall(ExprSelect(expr, '.', 'take'))
+def _refptr(T):
+    return Type('RefPtr', T=T)
 
 
 def _uniqueptr(T):
     return Type('UniquePtr', T=T)
 
 
-def _uniqueptrGet(expr):
-    return ExprCall(ExprSelect(expr, '.', 'get'))
-
-
 def _tuple(types, const=0, ref=0):
     return Type('Tuple', T=types, const=const, ref=ref)
 
 
 def _promise(resolvetype, rejecttype, tail, resolver=False):
     inner = Type('Private') if resolver else None
     return Type('MozPromise', T=[resolvetype, rejecttype, tail], inner=inner)