Skip to content

Commit 47596ee

Browse files
committed
refactor(util): remove old UFCS branch
1 parent 7ff228d commit 47596ee

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

include/cpp2util.h

-14
Original file line numberDiff line numberDiff line change
@@ -758,24 +758,10 @@ class out {
758758
} \
759759
}
760760

761-
#if 1 // When not rebasing, enable this branch.
762761
#define CPP2_UFCS(...) CPP2_UFCS_(&,,__VA_ARGS__)
763762
#define CPP2_UFCS_TEMPLATE(...) CPP2_UFCS_(&,template,__VA_ARGS__)
764763
#define CPP2_UFCS_NONLOCAL(...) CPP2_UFCS_(,,__VA_ARGS__)
765764
#define CPP2_UFCS_TEMPLATE_NONLOCAL(...) CPP2_UFCS_(,template,__VA_ARGS__)
766-
#else // When rebasing, enable this branch.
767-
// `git restore --staged` and `git restore` conflicting sources.
768-
// Compile `cppfront`. Regenerate conflicting sources. Disable this branch. Complete rebase.
769-
#define CPP2_UFCS_REMPARENS(...) __VA_ARGS__
770-
#define CPP2_UFCS(FUNCNAME,PARAM1,...) CPP2_UFCS_(&,,FUNCNAME)(PARAM1,__VA_ARGS__)
771-
#define CPP2_UFCS_0(FUNCNAME,PARAM1) CPP2_UFCS_(&,,FUNCNAME)(PARAM1)
772-
#define CPP2_UFCS_TEMPLATE(FUNCNAME,TEMPARGS,PARAM1,...) CPP2_UFCS_(&,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1,__VA_ARGS__)
773-
#define CPP2_UFCS_TEMPLATE_0(FUNCNAME,TEMPARGS,PARAM1) CPP2_UFCS_(&,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1)
774-
#define CPP2_UFCS_NONLOCAL(FUNCNAME,PARAM1,...) CPP2_UFCS_(,,FUNCNAME)(PARAM1,__VA_ARGS__)
775-
#define CPP2_UFCS_0_NONLOCAL(FUNCNAME,PARAM1) CPP2_UFCS_(,,FUNCNAME)(PARAM1)
776-
#define CPP2_UFCS_TEMPLATE_NONLOCAL(FUNCNAME,TEMPARGS,PARAM1,...) CPP2_UFCS_(,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1,__VA_ARGS__)
777-
#define CPP2_UFCS_TEMPLATE_0_NONLOCAL(FUNCNAME,TEMPARGS,PARAM1) CPP2_UFCS_(,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1)
778-
#endif
779765

780766

781767
//-----------------------------------------------------------------------

0 commit comments

Comments
 (0)