git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Runtime minor cleanup
commit1ae76d6da4e87266e60bc43b61bb4f67d1a91df6 authorAndy Arvanitis <andyarvanitis@gmail.com> dateMon 30 Jul 2018, 20:32 (8 years ago) parent9c04b79
1 file changed−20
runtime/purescript.h−20
runtime/purescript.h−20
@@ -60,18 +60,6 @@ namespace purescript {
6060 typename std::enable_if<std::is_assignable<std::function<boxed(void)>,T>::value>::type* = 0) : std::shared_ptr<void>(std::make_shared<eff_fn>(f)) {
6161 }
6262
63− // operator int64_t() const {
64− // return *static_cast<int64_t*>(get());
65− // }
66− //
67− // operator double() const {
68− // return *static_cast<double*>(get());
69− // }
70− //
71− // operator bool() const {
72− // return *static_cast<bool*>(get());
73− // }
74−
7563 template <typename T,
7664 typename = typename std::enable_if<!std::is_same<boxed,T>::value &&
7765 std::is_convertible<T,fn>::value>::type>
@@ -124,14 +112,6 @@ namespace purescript {
124112 return box<T>(unbox<T>(b));
125113 }
126114
127− // inline auto operator ==(const boxed& left, const int right) -> bool {
128− // return unbox<int64_t>(left) == right;
129− // }
130− //
131− // inline auto operator !=(const boxed& left, const int right) -> bool {
132− // return unbox<int64_t>(left) != right;
133− // }
134−
135115 using fn_t = std::function<boxed(const boxed&)>;
136116 using dict_t = std::map<const string, boxed>;
137117 using array_t = std::deque<boxed>;