diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-07-03 07:22:56 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-07-03 07:22:56 +0800 |
commit | e55808025d84bb0fce5f613eb80c55d238c19938 (patch) | |
tree | 0e79b99f0b2f91b81c2cc61ecdb64837de317049 /devel/android-tools-fastboot-devel | |
parent | 1b7512df4839006001e18c203d68b42af539ca1e (diff) | |
download | freebsd-ports-gnome-e55808025d84bb0fce5f613eb80c55d238c19938.tar.gz freebsd-ports-gnome-e55808025d84bb0fce5f613eb80c55d238c19938.tar.zst freebsd-ports-gnome-e55808025d84bb0fce5f613eb80c55d238c19938.zip |
devel/android-tools-fastboot-devel: drop unused file after r422901
Diffstat (limited to 'devel/android-tools-fastboot-devel')
-rw-r--r-- | devel/android-tools-fastboot-devel/files/Makefile | 1 | ||||
-rw-r--r-- | devel/android-tools-fastboot-devel/files/util_freebsd.cpp | 39 |
2 files changed, 0 insertions, 40 deletions
diff --git a/devel/android-tools-fastboot-devel/files/Makefile b/devel/android-tools-fastboot-devel/files/Makefile index b8bf685f5cd2..82ef3a1d91d9 100644 --- a/devel/android-tools-fastboot-devel/files/Makefile +++ b/devel/android-tools-fastboot-devel/files/Makefile @@ -18,7 +18,6 @@ SRCS+= util.cpp .PATH: ${EXTRADIR} SRCS+= usb_freebsd.cpp -SRCS+= util_freebsd.cpp # required by fastboot .PATH: ${.CURDIR}/../adb diff --git a/devel/android-tools-fastboot-devel/files/util_freebsd.cpp b/devel/android-tools-fastboot-devel/files/util_freebsd.cpp deleted file mode 100644 index 0734454a9c85..000000000000 --- a/devel/android-tools-fastboot-devel/files/util_freebsd.cpp +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2011 Hans Petter Selasky. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS - * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -#include "fastboot.h" - -#include <unistd.h> -#include <limits.h> - -std::string -get_my_path() -{ - char path[PATH_MAX + 1]; - getcwd(path, sizeof(path) - 1); - return path; -} |