Index: osprey/ipa/main/analyze/ipa_inline.h
===================================================================
--- osprey/ipa/main/analyze/ipa_inline.h	(revision 1183)
+++ osprey/ipa/main/analyze/ipa_inline.h	(working copy)
@@ -71,9 +71,6 @@
 extern void
 Perform_Inline_Analysis (IPA_CALL_GRAPH *cg, MEM_POOL* pool);
 
-extern void
-Inline_Small_funcs(IPA_CALL_GRAPH *cg, UINT32 pu_size, MEM_POOL *pool);
-
 //INLINING_TUNING static->exportable^
 extern void 
 Get_Sorted_Callsite_List (IPA_NODE *n, IPA_CALL_GRAPH *cg, AUX_IPA_EDGE<INT32>& cost_vector, vector<IPA_EDGE_INDEX>& callsite_list); //pengzhao
@@ -100,7 +97,6 @@
                   INVOCATION_COST &cost_vector);
   void analyze(); 
   void report();
-  void inline_small_funcs();
  private:
   BOOL visited(std::map<IPA_NODE_INDEX,BOOL> &vector, IPA_NODE *node);
   void help_find_nodes_affected_by_inlining(IPA_EDGE *edge, NODE_INDEX_VECTOR &vector,
Index: osprey/ipa/main/analyze/ipa_inline.cxx
===================================================================
--- osprey/ipa/main/analyze/ipa_inline.cxx	(revision 1183)
+++ osprey/ipa/main/analyze/ipa_inline.cxx	(working copy)
@@ -2231,31 +2231,6 @@
   budget(budget()-count*Effective_weight(callee));
 }
 
-void
-Inline_Analyzer::inline_small_funcs()
-{  
-  IPA_NODE_ITER cg_iter( the_cg, PREORDER, the_pool ); 
-  for (cg_iter.First (); !cg_iter.Is_Empty(); cg_iter.Next ()) {
-  	IPA_NODE* callee = cg_iter.Current ();
-        if ((callee == NULL) || 
-            (callee->Weight() > IPA_PU_Minimum_Size)){
-          continue; 
- 	} 
-
-        // Go through all the predecessors and inline the call
-
-        IPA_PRED_ITER edge_iter( the_cg, callee );
-
-        for( edge_iter.First (); !edge_iter.Is_Empty (); edge_iter.Next() ){
-           IPA_EDGE *edge = edge_iter.Current_Edge ();
-           if( edge != NULL)
-           { 
-             Analyze_call (the_cg->Caller(edge), edge, the_cg);
-	   } 
-	}
-    } 
-}
-
 Inline_Analyzer::Inline_Analyzer(IPA_CALL_GRAPH *cg, MEM_POOL *pool, INVOCATION_COST &cost)
 { 
   the_cg = cg;
@@ -2407,7 +2382,6 @@
     // based on the avgerage size of a function 
     // called from a loop
 
-    INT32 orig1 = IPA_PU_Limit;
     INT32 orig2 = non_aggr_callee_limit;
 
     if (avg_wt < orig2)
@@ -2434,7 +2408,6 @@
     }
 
     // reset the parameters to original values.
-    IPA_PU_Limit =orig1;
     non_aggr_callee_limit = orig2;
   }
 
@@ -2458,7 +2431,6 @@
   fprintf(stderr, "Picking node %s with weight %d for inlining \n",call->Name(),Effective_weight(call));
   }
   analyze_calls_in_caller(call, the_cg, *cost_vector);
-  NODE_INDEX_VECTOR modified;
 
   IPA_SUCC_ITER edge_iter(the_cg, call);
   for( edge_iter.First (); !edge_iter.Is_Empty (); edge_iter.Next() ){
