[cleanup] Add a getOperandNo method to the Use class and implement it
[oota-llvm.git] / include / llvm / IR / User.h
index 4f8d1b35df96faa2c33881492f196142e5e4bbc4..d288e1908c2f6581d204eedf0f6bd1fe03a19a96 100644 (file)
@@ -206,12 +206,6 @@ template<> struct simplify_type<User::const_op_iterator> {
   }
 };
 
-// value_use_iterator::getOperandNo - Requires the definition of the User class.
-template<typename UserTy>
-unsigned value_use_iterator<UserTy>::getOperandNo() const {
-  return U - U->getUser()->op_begin();
-}
-
 } // End llvm namespace
 
 #endif