| Index: native_client_sdk/src/libraries/nacl_mounts/path.cc
|
| diff --git a/native_client_sdk/src/libraries/nacl_mounts/path.cc b/native_client_sdk/src/libraries/nacl_mounts/path.cc
|
| index 363a4e3849e5c33c0a6318379a25ed832e311d33..47d4f4586fe4f98365616792cb27f2a5be8761bf 100644
|
| --- a/native_client_sdk/src/libraries/nacl_mounts/path.cc
|
| +++ b/native_client_sdk/src/libraries/nacl_mounts/path.cc
|
| @@ -2,13 +2,12 @@
|
| * Use of this source code is governed by a BSD-style license that can be
|
| * found in the LICENSE file.
|
| */
|
| +#include "nacl_mounts/path.h"
|
|
|
| #include <stdio.h>
|
| #include <string.h>
|
| #include <string>
|
|
|
| -#include "nacl_mounts/path.h"
|
| -
|
| Path::Path() {}
|
|
|
| Path::Path(const Path& path) {
|
| @@ -91,7 +90,6 @@ StringArray_t Path::Split() const {
|
| // static
|
| StringArray_t Path::Normalize(const StringArray_t& paths) {
|
| StringArray_t path_out;
|
| - int back = 0;
|
|
|
| for (size_t index = 0; index < paths.size(); index++) {
|
| const std::string &curr = paths[index];
|
| @@ -166,7 +164,6 @@ StringArray_t Path::Split(const std::string& path) {
|
| StringArray_t components;
|
| size_t offs = 0;
|
| size_t next = 0;
|
| - ssize_t cnt = 0;
|
|
|
| if (path[0] == '/') {
|
| offs = 1;
|
| @@ -196,4 +193,4 @@ Path& Path::operator =(const Path& p) {
|
|
|
| Path& Path::operator =(const std::string& p) {
|
| return Set(p);
|
| -}
|
| +}
|
|
|