summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Vas Crabb <cuavas@users.noreply.github.com>2016-12-12 16:36:36 +1100
committer GitHub <noreply@github.com>2016-12-12 16:36:36 +1100
commit1ab17ad21e9d273b4b259669c4d43df3d46972aa (patch)
tree480bd2b684d6af6f5f59e57a6841c10a9a0f15ed /src
parentf7bcc2c23f38e125eea04f4d80fc008a76a3f54e (diff)
parent02056c04b1988fe01404102ec7ec6a031c85a87f (diff)
Merge pull request #1827 from npwoods/remove_strncatz
[Imgtool] Removed dead strncatz() function
Diffstat (limited to 'src')
-rw-r--r--src/tools/imgtool/imgtool.cpp12
-rw-r--r--src/tools/imgtool/imgtool.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/src/tools/imgtool/imgtool.cpp b/src/tools/imgtool/imgtool.cpp
index 9afce54492d..bb7e6c860db 100644
--- a/src/tools/imgtool/imgtool.cpp
+++ b/src/tools/imgtool/imgtool.cpp
@@ -67,18 +67,6 @@ char *strncpyz(char *dest, const char *source, size_t len)
return s;
}
-char *strncatz(char *dest, const char *source, size_t len)
-{
- size_t l;
- l = strlen(dest);
- dest += l;
- if (len > l)
- len -= l;
- else
- len = 0;
- return strncpyz(dest, source, len);
-}
-
//-------------------------------------------------
// markerrorsource - marks where an error source
//-------------------------------------------------
diff --git a/src/tools/imgtool/imgtool.h b/src/tools/imgtool/imgtool.h
index f7a6f50993a..eb614a9dabb 100644
--- a/src/tools/imgtool/imgtool.h
+++ b/src/tools/imgtool/imgtool.h
@@ -265,7 +265,6 @@ int imgtool_validitychecks(void);
void unknown_partition_get_info(const imgtool_class *imgclass, uint32_t state, union imgtoolinfo *info);
char *strncpyz(char *dest, const char *source, size_t len);
-char *strncatz(char *dest, const char *source, size_t len);
void rtrim(char *buf);
#endif /* IMGTOOL_H */