changeset 956:eaa83315c5fe

nvl: remove unused pair2str function It hasn't been used since September 2017. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Fri, 08 Jun 2018 13:21:32 -0400
parents 3330b6790449
children 657980a5dea4
files nvl.c nvl.h
diffstat 2 files changed, 2 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/nvl.c	Sun May 06 17:54:07 2018 -0400
+++ b/nvl.c	Fri Jun 08 13:21:32 2018 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015-2017 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
+ * Copyright (c) 2015-2018 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -34,15 +34,3 @@
 
 	return out;
 }
-
-const char *pair2str(const struct nvpair *pair)
-{
-	struct str *str;
-
-	str = nvpair_value_str(pair);
-	ASSERT(!IS_ERR(str));
-
-	/* FIXME: we are leaking a refence */
-
-	return str_cstr(str);
-}
--- a/nvl.h	Sun May 06 17:54:07 2018 -0400
+++ b/nvl.h	Fri Jun 08 13:21:32 2018 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015-2017 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
+ * Copyright (c) 2015-2018 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -26,7 +26,6 @@
 #include <stdbool.h>
 #include <jeffpc/nvl.h>
 
-extern const char *pair2str(const struct nvpair *pair);
 extern uint64_t pair2int(const struct nvpair *pair);
 
 #endif