Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/node-sass/src/libsass/src/backtrace.cpp')
-rw-r--r--node_modules/node-sass/src/libsass/src/backtrace.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/node_modules/node-sass/src/libsass/src/backtrace.cpp b/node_modules/node-sass/src/libsass/src/backtrace.cpp
deleted file mode 100644
index 8da963a..0000000
--- a/node_modules/node-sass/src/libsass/src/backtrace.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-#include "backtrace.hpp"
-
-namespace Sass {
-
- const std::string traces_to_string(Backtraces traces, std::string indent) {
-
- std::stringstream ss;
- std::string cwd(File::get_cwd());
-
- bool first = true;
- size_t i_beg = traces.size() - 1;
- size_t i_end = std::string::npos;
- for (size_t i = i_beg; i != i_end; i --) {
-
- const Backtrace& trace = traces[i];
-
- // make path relative to the current directory
- std::string rel_path(File::abs2rel(trace.pstate.path, cwd, cwd));
-
- // skip functions on error cases (unsure why ruby sass does this)
- // if (trace.caller.substr(0, 6) == ", in f") continue;
-
- if (first) {
- ss << indent;
- ss << "on line ";
- ss << trace.pstate.line + 1;
- ss << " of " << rel_path;
- // ss << trace.caller;
- first = false;
- } else {
- ss << trace.caller;
- ss << std::endl;
- ss << indent;
- ss << "from line ";
- ss << trace.pstate.line + 1;
- ss << " of " << rel_path;
- }
-
- }
-
- ss << std::endl;
- return ss.str();
-
- }
-
-};