From 8a6080eb1400b9b7414e2ec8b995268315448cb5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 26 Aug 2006 16:48:01 +0000 Subject: * Refactoring. --- src/libexpr/primops.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/libexpr') diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 50712a72513a..9fbab559ea35 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -146,12 +146,7 @@ static void processBinding(EvalState & state, Expr e, Derivation & drv, else if (matchUri(e, s)) ss.push_back(aterm2String(s)); else if (e == eTrue) ss.push_back("1"); else if (e == eFalse) ss.push_back(""); - - else if (matchInt(e, n)) { - ostringstream st; - st << n; - ss.push_back(st.str()); - } + else if (matchInt(e, n)) ss.push_back(int2String(n)); else if (matchAttrs(e, es)) { Expr a = queryAttr(e, "type"); -- cgit 1.4.1