aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BigInt.c26
-rw-r--r--BigInt.h3
2 files changed, 0 insertions, 29 deletions
diff --git a/BigInt.c b/BigInt.c
index fe0eedf..e9f6565 100644
--- a/BigInt.c
+++ b/BigInt.c
@@ -141,32 +141,6 @@ B_dup(MemoryManager *mm, const BigInt bigint) {
return start;
}
-BigInt
-B_newsum(MemoryManager *mm, BigInt a, BigInt b) {
- BigInt total = B_dup(mm, a);
-
- if (NULL == total ||
- R_Ok != B_sum(&total, b))
- {
- return NULL;
- }
-
- return total;
-}
-
-BigInt
-B_newsub(MemoryManager *mm, BigInt a, BigInt b) {
- BigInt total = B_dup(mm, a);
-
- if (NULL == total ||
- R_Ok != B_sub(&total, b))
- {
- return NULL;
- }
-
- return total;
-}
-
/* Free */
Result
diff --git a/BigInt.h b/BigInt.h
index db04c5d..9eb52a4 100644
--- a/BigInt.h
+++ b/BigInt.h
@@ -12,9 +12,6 @@ BigInt B_newstr(MemoryManager *mm, const char* str);
BigInt B_newbytes(MemoryManager *mm, usize bytes);
BigInt B_dup(MemoryManager *mm, const BigInt bigint);
-BigInt B_newsum(MemoryManager *mm, BigInt a, BigInt b);
-BigInt B_newsub(MemoryManager *mm, BigInt a, BigInt b);
-
/* Free */
Result B_free(BigInt *bigint);