diff --git a/Builds/VisualStudio2013/RippleD.vcxproj b/Builds/VisualStudio2013/RippleD.vcxproj index cd4add8e8e..6bda41cf58 100644 --- a/Builds/VisualStudio2013/RippleD.vcxproj +++ b/Builds/VisualStudio2013/RippleD.vcxproj @@ -3220,8 +3220,6 @@ - - True @@ -3252,6 +3250,8 @@ + + diff --git a/Builds/VisualStudio2013/RippleD.vcxproj.filters b/Builds/VisualStudio2013/RippleD.vcxproj.filters index 8687f56463..d014f89426 100644 --- a/Builds/VisualStudio2013/RippleD.vcxproj.filters +++ b/Builds/VisualStudio2013/RippleD.vcxproj.filters @@ -3933,9 +3933,6 @@ ripple\rpc\impl - - ripple\rpc\impl - ripple\rpc\impl @@ -3972,6 +3969,9 @@ ripple\rpc + + ripple\rpc + ripple\rpc diff --git a/src/ripple/app/ledger/tests/common_ledger.cpp b/src/ripple/app/ledger/tests/common_ledger.cpp index dd999b184e..bac91d0bf6 100644 --- a/src/ripple/app/ledger/tests/common_ledger.cpp +++ b/src/ripple/app/ledger/tests/common_ledger.cpp @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include namespace ripple { diff --git a/src/ripple/app/paths/tests/Path_test.cpp b/src/ripple/app/paths/tests/Path_test.cpp index a9b65e5e89..d694fecfa1 100644 --- a/src/ripple/app/paths/tests/Path_test.cpp +++ b/src/ripple/app/paths/tests/Path_test.cpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/ripple/rpc/impl/RipplePathFind.h b/src/ripple/rpc/RipplePathFind.h similarity index 92% rename from src/ripple/rpc/impl/RipplePathFind.h rename to src/ripple/rpc/RipplePathFind.h index c1676729cb..eeceb44b54 100644 --- a/src/ripple/rpc/impl/RipplePathFind.h +++ b/src/ripple/rpc/RipplePathFind.h @@ -25,11 +25,6 @@ namespace ripple { -class RippleAddress; - -Json::Value -buildSrcCurrencies(AccountID const& raSrc, RippleLineCache::pointer const& cache); - std::pair ripplePathFind (RippleLineCache::pointer const& cache, AccountID const& raSrc, AccountID const& raDst, diff --git a/src/ripple/rpc/handlers/RipplePathFind.cpp b/src/ripple/rpc/handlers/RipplePathFind.cpp index de37486e1e..07d6ed389d 100644 --- a/src/ripple/rpc/handlers/RipplePathFind.cpp +++ b/src/ripple/rpc/handlers/RipplePathFind.cpp @@ -18,7 +18,7 @@ //============================================================================== #include -#include +#include #include #include #include @@ -32,6 +32,24 @@ namespace ripple { +static +Json::Value +buildSrcCurrencies(AccountID const& account, + RippleLineCache::pointer const& cache) +{ + auto currencies = accountSourceCurrencies(account, cache, true); + auto jvSrcCurrencies = Json::Value(Json::arrayValue); + + for (auto const& uCurrency : currencies) + { + Json::Value jvCurrency(Json::objectValue); + jvCurrency[jss::currency] = to_string(uCurrency); + jvSrcCurrencies.append(jvCurrency); + } + + return jvSrcCurrencies; +} + // This interface is deprecated. Json::Value doRipplePathFind (RPC::Context& context) { @@ -196,22 +214,6 @@ Json::Value doRipplePathFind (RPC::Context& context) return jvResult; } -Json::Value -buildSrcCurrencies(AccountID const& account, RippleLineCache::pointer const& cache) -{ - auto currencies = accountSourceCurrencies(account, cache, true); - auto jvSrcCurrencies = Json::Value(Json::arrayValue); - - for (auto const& uCurrency : currencies) - { - Json::Value jvCurrency(Json::objectValue); - jvCurrency[jss::currency] = to_string(uCurrency); - jvSrcCurrencies.append(jvCurrency); - } - - return jvSrcCurrencies; -} - std::pair ripplePathFind (RippleLineCache::pointer const& cache, AccountID const& raSrc, AccountID const& raDst,