Skip to content

Commit a10eb63

Browse files
committed
refactor(util): remove old UFCS branch
1 parent 270fdf0 commit a10eb63

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
@@ -724,24 +724,10 @@ class out {
724724
} \
725725
}
726726

727-
#if 1 // When not rebasing, enable this branch.
728727
#define CPP2_UFCS(...) CPP2_UFCS_(&,,__VA_ARGS__)
729728
#define CPP2_UFCS_TEMPLATE(...) CPP2_UFCS_(&,template,__VA_ARGS__)
730729
#define CPP2_UFCS_NONLOCAL(...) CPP2_UFCS_(,,__VA_ARGS__)
731730
#define CPP2_UFCS_TEMPLATE_NONLOCAL(...) CPP2_UFCS_(,template,__VA_ARGS__)
732-
#else // When rebasing, enable this branch.
733-
// `git restore --staged` and `git restore` conflicting sources.
734-
// Compile `cppfront`. Regenerate conflicting sources. Disable this branch. Complete rebase.
735-
#define CPP2_UFCS_REMPARENS(...) __VA_ARGS__
736-
#define CPP2_UFCS(FUNCNAME,PARAM1,...) CPP2_UFCS_(&,,FUNCNAME)(PARAM1,__VA_ARGS__)
737-
#define CPP2_UFCS_0(FUNCNAME,PARAM1) CPP2_UFCS_(&,,FUNCNAME)(PARAM1)
738-
#define CPP2_UFCS_TEMPLATE(FUNCNAME,TEMPARGS,PARAM1,...) CPP2_UFCS_(&,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1,__VA_ARGS__)
739-
#define CPP2_UFCS_TEMPLATE_0(FUNCNAME,TEMPARGS,PARAM1) CPP2_UFCS_(&,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1)
740-
#define CPP2_UFCS_NONLOCAL(FUNCNAME,PARAM1,...) CPP2_UFCS_(,,FUNCNAME)(PARAM1,__VA_ARGS__)
741-
#define CPP2_UFCS_0_NONLOCAL(FUNCNAME,PARAM1) CPP2_UFCS_(,,FUNCNAME)(PARAM1)
742-
#define CPP2_UFCS_TEMPLATE_NONLOCAL(FUNCNAME,TEMPARGS,PARAM1,...) CPP2_UFCS_(,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1,__VA_ARGS__)
743-
#define CPP2_UFCS_TEMPLATE_0_NONLOCAL(FUNCNAME,TEMPARGS,PARAM1) CPP2_UFCS_(,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1)
744-
#endif
745731

746732

747733
//-----------------------------------------------------------------------

0 commit comments

Comments
 (0)